import { post } from '@/utils/request'

// 读取H5设置 列表
export const viewH5Setting = p => post(`/service-system/b/h5Setting/v1/viewH5Setting`, p)
export const saveH5Setting = p => post(`/service-system/b/h5Setting/v1/saveH5Setting`, p)

// 渠道设置 列表
export const getPageList = p => post(`/service-system/b/extendChannel/v1/pageList`, p)
// 渠道设置 新增
export const addPageList = p => post(`/service-system/b/extendChannel/v1/add`, p)
// 渠道设置 修改
export const modifyPageList = p => post(`/service-system/b/extendChannel/v1/modify`, p)
// 渠道设置 查看
export const lookPageList = p => post(`/service-system/b/extendChannel/v1/view/${p.id}`, p, 'get')
// 渠道设置 删除
export const delPageList = p => post(`/service-system/b/extendChannel/v1/del/${p.id}`, p, 'get')
// 渠道设置 设置有效列表 没有联调
export const statusPageList = p => post(`/service-system/b/extendChannel/v1/effectiveList`, p, 'get')

// 渠道推广 列表
export const planPageList = p => post(`/service-marketing/b/extendPlan/v1/pageList`, p)
// 渠道推广 新增
export const planAddPageList = p => post(`/service-marketing/b/extendPlan/v1/add`, p)
// 渠道推广 删除
export const planDelPageList = p => post(`/service-marketing/b/extendPlan/v1/del/${p.id}`, p, 'get')
// 渠道推广 修改
export const planModifyPageList = p => post(`/service-marketing/b/extendPlan/v1/modify`, p)
// 渠道推广 查看
export const planLookPageList = p => post(`/service-marketing/b/extendPlan/v1/view/${p.id}`, p, 'get')
// 渠道推广 投放
export const planLaunchPageList = p => post(`/service-marketing/b/extendPlan/v1/generateQrCode/${p.id}`, p, 'get')
// 渠道推广 二维码
export const planCode = p => post(`/service-marketing/b/extendPlan/v1/qrCode/${p.id}`, p, 'get')
